package com.hczt.xhminiapp.appapi.weixin.utils;

/**
 * @author 红创-马海强
 * @date 2019-03-07 17:07
 * @description 获取用户信息工具类
 */
public class WxUserInfoUtil {
    /**
     * 获取oppenid
     */
    public static String WEB_OPENID = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";

    public static String getWebAccess(String appId,String secret,String code) {
        return String.format(WEB_OPENID,appId,secret,code);
    }
}
